package com.asia5b.a5mall.member.adapter

import com.asia5b.a5bmall.same.databinding.GoodsitemFootBinding
import com.asia5b.a5mall.member.R

import com.asia5b.a5mall.middleware.model.shop.AbsGoodsModel

import com.asia5b.a5mall.middleware.utils.CurrencyPriceBuilder3
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class FootGoodsAdapter (list: ArrayList<AbsGoodsModel>) : BaseQuickAdapter<AbsGoodsModel, BaseDataBindingHolder<GoodsitemFootBinding>>(R.layout.goodsitem_foot,list) {
    var isShowDelete = false
    init {
        addChildClickViewIds(R.id.cb_foot_goods_check)
        addChildClickViewIds(R.id.tv_foot_delete)
        addChildClickViewIds(R.id.sl_footgoods_gen)
        addChildClickViewIds(R.id.iv_foot_addcart)
    }
    override fun convert(helper: BaseDataBindingHolder<GoodsitemFootBinding>, item: AbsGoodsModel) {
        val viewDataBinding = helper.dataBinding!!

        viewDataBinding.model = item
        viewDataBinding.isShowDelete = isShowDelete


    }
}